<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'showProducts.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    


  <script type="text/javascript" src="<%=basePath%>/js/showProductByAjax.js"></script>
  
  </head>
  
  <body>
  		<jsp:include page="/jsp/head.jsp"></jsp:include>
  		<a href="/WebDemo2/jsp/index.jsp" >返回</a>
  		<hr/>
  		
  		<button onclick="getProducts()">显示商品</button>
  		
  		<div id="show"></div>
  	
    
  </body>
</html>
